package com.earl.eatbao.dao.eatbao;

import com.earl.eatbao.commons.dao.BaseRepsitoty;
import com.earl.eatbao.domain.eatbao.Shop;

import java.util.List;

public interface ShopDao extends BaseRepsitoty<Shop,Long>{

    /**
     * 查找指点商家商店
     * @param userId
     * @return
     */
    Shop findUniqueByBusinessId(Long userId);

    /**
     * 根据商家Id查询对应的商店
     * @param businessId
     * @return
     */
    List<Shop> findByBusinessId(Long businessId);

	List<Shop> findByStatus(int status);
}
